package com.atguigu.factory.simplefactory.pizzastore.pizza;

public abstract class Pizza {
    private String name;
    public abstract void prepare();
    public void bake() {
        System.out.println(name + " 正在烘烤");
    }
    public void cut() {
        System.out.println(name + "正在切块");
    }
    public void box() {
        System.out.println(name + "正在打包");
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
